<include file="Admin@Public:header" />
<form class="form-inline" role="form" method="POST" data-ajax="false">
	<div class="form-group">
	<label class="sr-only" for="keyword">关键词</label>
		<input type="text" class="form-control" id="keyword" name="keyword" value="{$keyword}" size="20" placeholder="关键词">
	</div>
    <div class="form-group">

        <label class="sr-only" >上级分类：</label>
         <select name="parentid" class="form-control">

                <option value="">请选择</option>

                {$option_tree}

            </select>
    </div>
	<button type="submit" class="btn btn-default">搜索</button>
</form>
<table class="table table-striped">
	<tr>
		<th>ID</th>
		<th>标题</th>
		<th>添加时间</th>
		<th>操作</th>
	</tr>
	<volist name="list" id="item">
	<tr>
		<td>{$item['articleid']}</td>
		<td><a href="{:U('Article/Index/show',array('id'=>$item['articleid']))}" target="_blank">{$item['title']}</a></td>
		<td>{$item['addtime']|date='Y-m-d H:i:s',###}</td>
		<td>
			<if condition="$item['isrecommend'] eq '1'">
			<a href="{:U('Article/Admin/todo',array('id'=>$item['articleid'],'isrecommend'=>0))}" class="J_ajax_action">取消推荐</a>
			<else/>
			<a href="{:U('Article/Admin/todo',array('id'=>$item['articleid'],'isrecommend'=>1))}" class="J_ajax_action">推荐</a>
			</if>
			<a href="{:U('Article/Admin/edit',array('id'=>$item['articleid']))}">编辑</a>
			<a href="{:U('Article/Admin/del',array('id'=>$item['articleid']))}" class="del-confirm-btn">删除</a>
		</td>
	</tr>
	</volist>
</table>
<div class="page">{$page}</div>
<include file="Admin@Public:footer" />